using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Data.Entity;

namespace Edu.Web.Data.Entity
{
    /// <summary>
    /// Cource
    /// </summary>    
	[Table("cource")]
    public partial class CourceEntity : BaseModel<long>
    {		    
        /// <summary>
        /// 课程名称
        /// </summary>
		[Column("cource_name")]
        public string CourceName { get; set; }
    
        /// <summary>
        /// 课程编号
        /// </summary>
		[Column("cource_no")]
        public string CourceNo { get; set; }
    }

	public class CourceEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<CourceEntity>(new EntityTypeConfiguration<CourceEntity>());
        }
    }
}

